package com.ruoyi.demo.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 一对多-用户对象 tb_user
 *
 * @author ruoyi
 * @date 2020-05-24
 */
public class TbUser extends BaseEntity
{
  private static final long serialVersionUID = 1L;

  /** 编号 */
  private Long id;

  /** 用户名 */
  @Excel(name = "用户名")
  private String username;

  /** 密码 */
  @Excel(name = "密码")
  private String password;

  public void setId(Long id)
  {
    this.id = id;
  }

  public Long getId()
  {
    return id;
  }
  public void setUsername(String username)
  {
    this.username = username;
  }

  public String getUsername()
  {
    return username;
  }
  public void setPassword(String password)
  {
    this.password = password;
  }

  public String getPassword()
  {
    return password;
  }

  @Override
  public String toString() {
    return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
      .append("id", getId())
      .append("username", getUsername())
      .append("password", getPassword())
      .toString();
  }
}
